﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    enum PedlarNpc
    {
        武器,
        材料,
        食物
    }
    class Pedlar : NPC//商贩npc   
    {
        private PedlarNpc penpc;
        public PedlarNpc Penpc
        {
            get { return this.penpc; }
            set { this.penpc = value; }
        }
        public Pedlar(string Name, NPCType Type, PedlarNpc Penpc) : base(Name, Type)
        {
            this.Penpc = Penpc;
        }
        public override void SB()
        {
            Console.WriteLine("尊敬勇者，你终于来了。");
            Console.WriteLine("我叫{0}，我属于{1}型npc,我是{2}npc，我有{3}这个商品，你要吗？价格低廉，童叟无欺。", base.Name, base.Type, this.Penpc, this.Penpc);
        }
    }
}

